$h: 50px;

header,
footer {
  height: $h;
  line-height: $h;
  width: 100%;
  background-color: rgb(65, 109, 224);
  color: white;
}

header {
  font-size: 18px;
  padding: 0 16px;
}

footer {
  text-align: center;
}

.main-container {
  width: 100%;
  height: 100%;
  &.has-header-footer {
    height: calc(100% - #{$h} * 2);
  }
}
